package com.qj.travel.db.jdbc;

/**
 * Created by Admin on 2016/9/28.
 */
import org.apache.commons.dbcp.BasicDataSource;

import java.sql.DriverManager;
import java.sql.SQLException;

public class FixedBasicDataSource extends BasicDataSource {

    @Override
    public synchronized void close() throws SQLException{
        DriverManager.deregisterDriver(DriverManager.getDriver(url));
        super.close();
    }
}
